package com.mike.bean;

import com.mike.service.TortoiseService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent {

    @Reference
    private TortoiseService tortoiseService;

    public String swim(String place, int timeToWait) {
        return tortoiseService.swim(place, timeToWait);
    }

    public String eat(String foodName, int timeToWait) {
        return tortoiseService.eat(foodName, timeToWait);
    }

    public String sleep(String place, int timeToWait) {
        return tortoiseService.sleep(place, timeToWait);
    }

}
